Pipeline mapping and interrupter therefor

ABSTRACT

Cathodic protection voltages are used to resist the damage to pipes or cables from electrolytic effects. However, localised fields can lead to stray currents and may result in corrosion and it is therefore desirable to detect and analyse those stray currents. Frequently there are several pipes in the area of interest and so it is necessary to distinguish between those pipes. Therefore the cathodic voltage on the pipes is modulated, with different pipes having different modulations. This modulation may be applied using an interrupter. Orthogonal modulations with non-unitary aspect ratios improve the discrimination between the pipes whilst maximising the energy content of the modulation pattern. The analysis is improved when the interrupters are synchronised with each other and so repeating on the same time-base. This synchronisation may be achieved using an external time signal such as GPS. An interrupter which can be used in this regard is also proposed, and may be powered from the cathodic voltage itself.

BACKGROUND OF THE INVENTION

[0001] The present invention relates to the mapping of an underground cable or pipe. It also relate to an interrupter for interrupting the cathodic protection voltage applied to such an underground cable or pipe.

[0002] It is well known to apply a cathodic (negative) voltage to an underground cable or pipe (hereinafter “pipe”) to reduce corrosion of that pipe. If the pipe is at a positive voltage relative to ground, electrolytic effects occur which damage the pipe. It should be noted that such cathodic protection voltage may be applied even when the pipe is coated to insulate it from the ground, because it is common for that insulation to develop holes or other faults which could result in localised damage.

[0003] However, it is also common for such pipes to experience electrical fields due to other objects such as adjacent pipes, or other electrical conductors such as railway lines, etc. Such localised fields sometimes result in the pipe experiencing a positive voltage relative to ground, so that corrosion occurs. It is therefore desirable to investigate currents in the pipe or cable to detect points where corrosion may occur. If stray currents are detected, these may be due to electric fields from other objects (such currents hereinafter being referred to as stray currents), appropriate action can be taken, such as repairing the fault or taking corrective action elsewhere by suitable voltage control, or even by providing sacrificial anodes at an adjacent fault.

[0004] In order to detect the stray currents, it is possible to make use of the magnetic fields generated by those currents, and detect those fields remotely from the pipe itself, such as at the surface. Detection of such magnetic fields is generally known, although special techniques may be needed because of the low magnitude of the currents.

[0005] There is also the problem that there may be several pipes in the area being investigated, and the currents from those other pipes may confuse the measurement.

SUMMARY OF THE INVENTION

[0006] Therefore, it is preferable that the cathodic protection voltage is modulated to enable the currents generated thereby to be more easily recognised by remote detectors. At its simplest, the modulation could be applied by a relay controlled switch connected between the pipe and the voltage source which supplies the cathodic protection voltage. However, the present invention, in its several aspects, seeks to develop stray current mapping arrangements, and also to provide an interrupter for applying a modulation to the cathodic protection voltage, and hence to the stray currents, and to improve the investigation of those stray currents.

[0007] Before discussing these aspects of the invention, however, it needs to be borne in mind that one source of stray currents is due to the cathodic protection voltage applied to other pipes which pass adjacent or across the pipe being investigated. Stray currents on the pipe being investigated may thus have multiple components, particularly when there are a large number of pipes adjacent each other.

[0008] Thus, a first aspect of the present invention proposes that the cathodic protection voltage of the pipe being investigated is modulated with a first modulation signal, and the cathodic protection voltage of a second pipe which passes adjacent the first pipe is modulated with a second modulation signal. Then, the stray currents on the pipe being investigated are analysed on the basis of the different modulation signals applied to the two pipes. If the stray currents are analysed at the first modulation, those current components due to the pipe itself, or due to other perturbations such as electric railways are determined. Then, if the stray currents are investigated at the second modulation, ie the modulation applied to another pipe, the effect of the linking between that other pipe and the pipe being investigated can be determined. This process can be repeated for multiple pipes by modulating with a distinct signal for each pipe.

[0009] Where the cathodic protection voltage of two pipes is to be modulated, whether it be the same modulation signal or with different modulation signals as in the first aspect, separate interrupters will be fitted to each pipe, and although the interrupters may be driven by oscillators having the same nominal frequency, manufacturing tolerances etc mean that synchronisation cannot be reliably achieved. Therefore, the interrupters need an additional system to provide synchronisation. The synchronisation represents a second aspect of the present invention.

[0010] Synchronisation could be achieved by directly connecting the two interrupters, so that the clock signal of one can be used as a reference against which the other is synchronised. However, in many situations, it is not practical for the interrupters connected to different pipes themselves to be connected. The pipes may only pass adjacent each other at a particular point along their length, and if the interrupters cannot be connected at that point, physical interconnection is problematic. Therefore, in a third aspect of the invention, synchronisation makes use of an arbitrary pre-set time for all interrupters. When any individual interrupter starts to operate, after it has stopped operating for some time, it determines the time interval between that pre-set time and the time of start of operation, and the interrupter signal (which is modulated by an appropriate modulation signal), is commenced at the point in the signal which corresponds to that which the signal would be if the signal had commenced at the pre-set time. In this way, the interrupters are synchronised as if any operating interrupter had started at the pre-set time, irrespective of the time which has past since that pre-set time.

[0011] In order for this operation to occur, the interrupter needs to determine the time between the pre-set time and the time at which the interrupter starts operation. If an absolute reference clock was available for each interrupter, that reference clock could be used. However, it is not normally economic to provide such accurate time measurement within an interrupter. Therefore, it is preferable that the interrupters make use of an external signal. If an external time signal is available (such as the Rugby signal in the UK), then that could be used. A further alternative is to make use of the Global Positioning System (GPS). Whilst those signals are primarily to provide positional information, they also provide a synchronised clock signal from which the interrupters can determine the time between the pre-set time and the time of starting the interrupter, and so can determine at which point in the interrupter signal the operation is to start.

[0012] To put this aspect another way; if all interrupters operated continually, syncnronisation would be achieved by starting them all at the same time (the pre-set time). However, since the interrupters are to be turned on and off, a calculation is made whenever they are turned on to determine the point in the cycle they would have reached if they always had been turned on (from the pre-set time referred to above), and the signal is started at the appropriate time in the cycle corresponding to that which would have occurred if the interrupter had been on all the time.

[0013] Another aspect, which applies to the modulation of any single pipe, as well as modulations applied to multiple pipe as discussed above, is that the modulation is preferably an irregular modulation, rather than simple regular square-wave modulation. This makes the stray currents being investigated easier to distinguish from other currents in the vicinity of the pipe being investigated.

[0014] Since the currents on one pipe may be due not only to the modulation applied to that pipe, but also to the modulation applied to other pipes, it is important that the resulting field generated by the combinations of those modulations must be such that the individual modulations should be separately identifiable. It is possible to do this by modulating at different frequencies, but this has high power requirements. Therefore, in a further aspect of the present invention, it is proposed that the different pipes are modulated with signals which are a sequence of binary levels defining a bit pattern, with the bit pattern of each signal being orthogonal to all other patterns. Use of this aspect means that the presence of one pattern, and hence one signal, can accurately be determined and measured even in the presence of any or all of the other patterns and hence all other signals.

[0015] Orthogonality can be expressed mathematically as:- S 1(t).S2(t)=0 where S1 and S2 are the signal waveforms, represented as functions of time. The integral is taken over a period of time equal to the repeat period of the waveforms. If the equation holds true then the two signals S1(t) and S2(t) are orthogonal, provided neither signal is trivial, i.e. S1 ²(t) 0 and S2 ²(t) 0

[0016] Thus, this use of orthogonal signals represents a fourth aspect of the invention.

[0017] Even when the pipes are carrying orthogonal signals, erroneous results may be obtained if measurements are carried out in a location where two pipes are closely adjacent, since the signal in one pipe may couple to the other. When measurements are carried out remotely which seek to measure the modulation on one of those pipes, the same modulation may appear on the other pipe due to coupling, and therefore the magnetic field being measured will represent the sum of the fields from those two fields. Therefore, it is necessary to separate them.

[0018] To do this, it is proposed that one of the pipes be isolated and signals applied to it to determine its position. Then, after returning it to the non-isolated state, the net signals from the two pipes are investigated. Since the location of one of the pipes is known, it is then possible to determine the location of the other by subtracting the fields that would be generated by the pipe at the known location, and then analysing the resultant fields which then represent the second pipe. This subtraction process represents a fifth aspect of the invention.

[0019] Normally, in order to make for the use of the present invention, the interrupter includes a switch in the form of a solid-state device rather than a relay-controlled switch. It has been appreciated that it is then possible to make use of the cathodic protection voltage to provide power, instead of, or as a supplement to battery power. This represents a sixth aspect of the invention. In the sixth aspect, the interrupter has power storage (eg a capacitor) connected between the cathodic protection supply and ground. In the normal state, where the interrupter is not interrupting the cathodic protection voltage, a voltage is present across the power storage means which thus stores power which can be used to operate the interrupter when the interrupter is to function.

[0020] Indeed, this sixth aspect of the invention is not limited to the powering of an interrupter. Any suitable device connected to the pipe may thus be powered by the cathodic protection voltage.

[0021] As has been mentioned previously, the stray currents usually have small magnitudes, and therefore it is desirable to be able to detect those small currents remotely. To detect those currents, the detector apparatus disclosed in WO98/54601 may be used in which a plurality of sensors are provided, normally in a horizontally-extending array. Then, comparison of the sensor outputs enables the position of the pipe to be determined accurately. The sensors detect the magnetic fields generated by the currents, and the arrangements described in WO98/54601 permit detection even at low frequencies.

[0022] The final aspect of the present invention concerns the mapping of stray currents themselves. When an attempt is made to determine the position of an underground pipe using a detector with multiple sensors, the effect of an interfering adjacent pipe (a second pipe) is to distort the signals received by the sensors, so that it is not possible to determine from the signals from the sensors the location of the pipe being investigated (the first pipe).

[0023] Suppose now that a counter-interference is supplied to signals from the sensors, by modifying them as if there was an interfering pipe at a set location, and the current in that interfering pipe was varied. If this process is carried out until the outputs of the sensors are modified so as to coincide (or nearly so) at a particular point. Then, the “virtual” interference would have cancelled out the actual interference from the second pipe. At first sight, such cancellation would require the position of the virtual pipe to be set at the same place as the second pipe, but this turns out not to be the case. The effect of the second pipe at one location can be cancelled by a virtual pipe at another location, with a difference current. Thus, it is not necessary that the position of the virtual pipe is set accurately. Indeed, it could be present at some fixed location and sufficiently accurate results would normally be obtained. Of course, if the operator knew approximate the location of the second pipe, then greater accuracy could be achieved, but again the position needs only to be known approximately, not exactly, for sufficiently accurate results to be achieved. This use of a virtual interfering pipe to correct the distortions in sensor signals due to a real interfering pipe thus represents a seventh aspect of the invention.

BRIEF DESCRIPTION OF THE DRAWINGS

[0024] An embodiment of the present invention will now be described in detail, by way of example, with reference to the accompanying drawings, in which:

[0025]FIG. 1 is schematic diagram of a cathodic protection voltage system for a pipe line in which an interrupter according to present invention may be used;

[0026]FIG. 2 shows the interrupter of FIG. 1 in more detail;

[0027]FIG. 3 shows the power supply of FIG. 1 in more detail;

[0028]FIG. 4 illustrates orthogonal signal patterns that may be used with a series of interrupters;

[0029]FIG. 5 illustrates the synchronisation of two orthogonal signal patterns;

[0030]FIG. 6 shows the location of a pipe using a detector with several sensors;

[0031]FIG. 7 is similar to FIG. 6, but shows the effect of interference due to a second pipe;

[0032]FIG. 8 is similar to FIGS. 5 and 6, but shows the effect of Anti-interference@; and

[0033]FIG. 9 shows a power arrangement that may be used with an interrupter of the present invention.

DETAILED DESCRIPTION OF THE INVENTION

[0034] Referring first to FIG. 1, a gas pipe 10 is to be protected against corrosion by having a cathodic (negative) protection voltage applied there too. That voltage is derived from a power supply 11, and rectified by a rectifier 12 so as to generate a cathodic voltage on a line 13 relative to ground. The line 13 is connected via an interrupter 14 to the pipe 10. The interrupter 14 comprises a switch 15 connected between the line 13 and the pipe 10, the switching of which is controlled by a control unit 16. The control unit 16 is powered from a power supply 17 within the interrupter 14, connected between the control unit 16 and ground.

[0035]FIG. 2 shows the structure of the interrupter 14 in more detail. In FIG. 2, the switch 15 and the power supply 17 of FIG. 1 are shown as blocks, but all other components belong to the control unit 16. Thus, a microcontroller 20 is connected to the power supply 17 and to the switch 15. It is triggered by the action of a keypad 21 to cause it to operate, deriving data from a memory 22. The microcontroller 20 is also connected to a GPS device 23 which links via a multiplexor 24 and a suitable interface 25 to provide an independently synchronised signal at e.g. 1 pps to the microcontroller 20. The microcontroller 20 is also connected to a display unit 26 and to sensors 27 which sense temperature and light levels, control the display 26 and other components. A sounder 28 may be provided to provide a warning of faulty operation of the switch 15.

[0036]FIG. 3 shows the power supply 17 in more detail. It comprises a power unit 30 which is connected to ground via a regulator 31, and is also connected to an independent power source 32 such as provided by a battery.

[0037] Suppose now that such interrupters are respectively connected to each of a plurality of pipes. The microprocessors 20 of each interrupter may then by programmed to apply a modulation to the cathodic protection voltage on the pipe, and so enable the pipe to be distinguished. The GPS unit 23 then acts as an independent synchroniser of the interrupters, since the signals which each provide to the corresponding microprocessor are synchronised, without the interrupters being physically interconnected.

[0038] Where multiple interrupters are used in this way, the modulations which each apply to the cathodic protection voltage of the respective pipes needs to be distinguishable.

[0039] Preferably, this is done by making the signals a sequence of binary levels, as represented by the open and closing of the switches. For multiple interrupters, the bit pattern thus defined by the switching is designed so that each pattern is orthogonal to all other patterns.

[0040] Orthogonality can be expressed mathematically as:- S 1 (t).S2(t)=0 where S1 and S2 are the signal waveforms, represented as functions of time. The integral is taken over a period of time equal to the repeat period of the waveforms. If the equation holds true then the two signals S1(t) and S2(t) are orthogonal, provided neither signal is trivial, i.e. S1 ²(t) 0 and S2 ²(t) 0

[0041]FIG. 4 illustrates four orthogonal patterns. It can be noted that the aim of these patterns is to maximise the energy content of each pattern, while maintaining orthogonality. It would be possible to have single pulse of duration of an appropriate fraction of the cycle, but the total energy content of the pulses would then be limited. The technique of using orthogonality then means that the energy content can be increased while maintaining distinguishably.

[0042] In order for the signals to be orthogonal, they must be operating in a known phase relationship. In order for that to be possible, when the interrupters are turning on and off, the interrupters must be synchronised as previously mentioned. In general, it is not sufficient simply to synchronise the interrupters in the sense of providing them with an internal clock, and then allowing them to run free. Whilst it is possible to provide internal clocks with sufficient accuracy for this to be achieved, such clocks are not practical options because of their cost. However, if cheaper, and therefore less accurate clocks were used, syncnronisation would be lost unless there was some external reference. Note it is also undesirable to interconnect the interrupters to achieve synchronisation.

[0043] Therefore, in this embodiment of the invention, a time (a pre-set time) is set which is which is known to all the interrupters. Then, whenever an interrupter is to start operation, it determines how long has passed between that pre-set time and the time it is to start, in terms of the number of cycles and part cycles of its signal, as if the signal had been operating continuously since the pre-set time. Then, the interrupter starts operating at which ever point in its cycle is thus determined. Thus, whenever an interrupter starts to operate it starts at which ever point in its cycle it would have reached if it had been operating continuously since the pre-set time.

[0044] This operation is illustrated in FIG. 5. In FIG. 5, the modulations of two interrupters are illustrated, both of which have a seven second cycle but one of which is on for 4 s and off for 3 s and the other of which is on for 0.5 s and off for 6.5 s. At a point A, both are synchronised. They remain synchronised at point D seven seconds later, but at point C the second interrupter is powered down. The first interrupter continues to operate. Next, supposes that both interrupters had been operating continuously for 25211 s at point A, and both had been synchronised for all that time, with the zero time then being the pre-set time referred to above.

[0045] Suppose now at point D, the second interrupter is to be turned back on. The second interrupter measures the time between point D and the pre-set time and, in the example shown in FIG. 5, it is determined that 111601s has elapsed. That number is not divisible by seven, nevertheless the interrupter can determine at which point in its cycle is the start. It can determine that, if it had started its cycle at 111594 s after the arbitrary preset time (at point E) it would start in synchronisation with interrupter 1. However, in fact another 6 s has passed since point E. Thus, interrupter 2 is to start 6 s into its cycle, so that the on pulse occurs one second later at 111601 s being point F, at which point the second interrupter is again synchronised with first interrupter.

[0046] Thus, by determining the time from the pre-set time, determining the number of cycles and part cycles which have elapsed since then, and starting the interrupter signal at whichever point in the cycle is thus determined, the interrupter is able to re-synchronise itself with interrupters without having to be linked to those other interrupters.

[0047] In order to achieve this it is necessary for the interrupter to be able to determine how much time has elapsed since the pre-set time, but this can be obtained from GPS signals, derived e.g. from the GPS device 23 in FIG. 2, which signals carry time information. In the embodiment in FIG. 5, both signals have the same period 7 (S) this technique can be applied to signals with different periods. Consider the case where one signal has a 7 second period and the other has a 9 second period. In such a case, the signals repeat together every 63 seconds. Nevertheless, if either interrupter is turned off, and then restarted, and it calculates the point in its cycle which it is to start, relative to the arbitrary pre-set time, then the interrupter which has been turned off and turned on will operate as if it had never been turned off, and thus will come back in synchronisation every 63 seconds in the same way as before.

[0048] Moreover, the signal need not be restricted necessarily to binary levels. The method described will work with arbitrary signals.

[0049] In the following description of the method of synchronisation the following symbols are used:

[0050] n the number of bits in a periodic signal,

[0051] T the period of a signal in seconds,

[0052] r the bit rate of a signal in bits per second,

[0053] i the bit number within a periodic signal in the range 0 to n−1,

[0054] t the current one-second epoch as described above.

[0055] Since the signal to be transmitted is periodic, it must consist of a repeated sequence of n bits defined by

n=rT

[0056] Two units will be synchronised correctly if at each instant they are in agreement about the current bit number, i within the signal. This is achieved by computing i at the commencement of each one-second epoch using this formula:

i=remainder [rt/n] where the </=signifies integer division.

[0057] The use of this formula together with the unique time information derived from GPS enables this synchronisation to be achieved. The signals from the previous example are used to show how this method succeeds where the other methods failed.

[0058] In many practical situations when locating a pipe, it is found that the current flowing along another underground service in the vicinity interferes with the signals on the pipe being investigated. In such a case the signals from the plurality of sensors in a detector may be used to indicate that the current is not flowing on a single service, as the signals do not follow the field pattern expected from a single conductor carrying the current. Using a locator indicator in these conditions may result in the incorrect location of the pipe as well as an incorrect current flow measurement.

[0059] Using the signals measured by many sensors, it is possible to determine the location of two or more pipes and the current flowing in them that give the field strengths that most closely match the signals measured.

[0060] The technique consists of two stages. Firstly the location of one of the pipes is determined, usually by isolating the current flowing on it and hence locating it correctly. Then the pipe is returned to being non-isolated, thus having the same interfering signal current as is on the adjacent pipe. The signal strengths at the sensors is then measured and using the information of the location of one of the pipes the location of the other is found along with the current flowing on both. This is done using a mathematical model of the fields generated by the pipes. The fields that would be generated by a pipe at the known pipe location are removed from the measured signals, and by varying the current on this pipe in the model the best fit to the measured signals is found. The model is optimised to give a best fit to the fields for a single additional pipe at an unknown location and having optimised this location the currents on both pipes are calculated from the fields from each pipe.

[0061] Having accurately measured the signals from each of the sensors, the position of the pipe can be determined. Having done this it is then possible to decide whether the signals are correct for there being one pipe or whether there are two pipes in the same vicinity. In the former case the calculated position will be correct. In the latter the position will not be the correct location of either pipe. In this case the location of one pipe should be measured either by ensuring that a signal current flows only on one pipe to make an accurate measurement or by some other means. Having determined the location of one pipe the position of this can be used to eliminate the field that this pipe would generate in the more complicated case with the two pipes. In this way the current on both pipes and the location of the second pipe may be determined.

[0062] It is not always possible to eliminate the effect of interference of one pipe on another by considering multiple modulation expressed above. In some situations, it is not possible to modulate the pipes differently. Moreover, in other situations, signals on one pipe couple to another pipe, and in that case the two signals have the same modulation (because they have common origin) and so cannot be eliminated by the processing described above. Nevertheless, it is still possible to minimise the effect of an interfering pipe.

[0063]FIG. 6 illustrates a detector detecting the location of a pipe in the situation where there is no interference. The detector 40 has multiple sensors 41,42,43,44 thereon, spaced along the length of the detector at known intervals, and each detect the magnetic fields due to the signals on the pipe 45. The sensors 41 to 44 will detect maximum field strength in directions which intersect at the pipe 45, as illustrated by arrows 46 to 49. Thus, in the absence of interference, the position of the pipe 45 can be determined accurately.

[0064] It should be noted that the sensor described with reference to FIG. 6 is illustrated in more detail in WO98/54601 thus its detailed structure, control, signal processing, etc will not be described in more detail now.

[0065]FIG. 7 illustrates the situation when there is a second pipe 50 carrying a current which generates an magnetic field which interferes with the field from the first pipe 45 at the sensors 41 to 44. In this case, the directions of maximum field represented by arrows 46 to 49 do not coincide at the pipe 45. Indeed, as illustrated in FIG. 7, they do not have a meaningful coincidence at all. The position of the first pipe 45 is thus impossible to determine.

[0066] Suppose now that a “virtual” pipe is assumed to exist at point 51 shown in FIG. 8, carrying a current. Pipe 51 can itself be considered to generate magnetic fields which would interfere with the signals received with the sensors 41 to 44 due to the pipe 45, and by varying the current in pipe 51 it can generate an Anti interference effect which has the effect of cancelling the interference due to pipe 50, so that the arrows 46 to 49 representing the maximum field strength detected by the sensors 41 to 44 then coincide (or substantially coincide) at the pipe 45. Thus, by varying the current in pipe 51 until a best fit is obtained for the arrows 46 to 49, the location of the pipe 45 can be determined with sufficient accuracy for practical purposes.

[0067] Of course, pipe 51 will not normally be a real pipe. Instead, the signals from the sensors 41 to 44 are modified as if there was a pipe at point 51, and the virtual current in that virtual pipe varied until the best fit was obtained. It has been found that the accuracy of this arrangement does not require the location of the virtual pipe 51 to coincide with the pipe 50. The interference effect is largely position independent. Therefore, it is possible for the user to estimate a suitable position for the pipe 51 or indeed for the detector to use a pre-set position. A suitable current value can be found at which the pipe 51 cancels the pipe 50.

[0068]FIG. 8 assumes that the pipes 50,51 are on the same side of the first pipe 45. Whilst reasonable results can be obtained even when they are on opposite sides of the first pipe 45, it may be better to try for a best fit with the pipe 51 on one side of the first pipe 45, and then to repeat the process with the pipe 51 on the other side of the first pipe 45, to see which produces the “better” best fit. Note that in practical situations, it is usually possible to say whether the interfering pipe is on one side or other of the pipe 45 to be investigated.

[0069] This technique can be used to eliminate the effect of multiple interfering pipes. Magnetic fields received at the sensors 41 to 44 of any pair (or more) of pipes is usually directly equivalent to the magnetic field received by a single pipe at some intermediate location. The composite effect created by that single pipe can then be cancelled by providing a virtual pipe equivalent to pipe 51 shown in FIG. 8.

[0070] It was previously mentioned, with reference to FIG. 3, the power supply 17 into FIG. 1 may comprise of power unit 30 and an independent power source 32 such as provided by a battery. However, it is also possible to provide power to the control unit 16 in an other way, as illustrated in FIG. 9. Control unit 16 may still have the power source 32, to provide a backup, but in the arrangement shown in FIG. 9 this is not the main source of power. Instead, the controller contains a capacitor 60 (other parts of the control unit 16 are not shown in FIG. 9) which is connected between a terminal of the cathodic protection voltage supply 61 and ground via a resistor 62. The other end of the cathodic protection voltage supply 61 is also connected to ground as shown at 63, and the pipe 10 maybe considered also connected to ground via a resistor 64. It will be appreciated that the resister 64 is not a separate component, but is created due to the nature of the materials surrounding the pipe 10. When the interrupter switch 15 is on, the cathodic protection voltage is supplied from the power supply 51 to the pipe 10. However, since the capacitor 60 is also connected to the cathodic protection voltage supply 61, the voltage is established across it causes charge to be stored which with current flowing through the existing 62) and thus the power represented by that store charge may be used to power the control unit 16 when the interrupter switch 16 needs to be turned off. Then using a solid state switch, such as a power FET, the energy needed to switch the switch 15 is minimised, and thus there will be sufficient power stored in the capacitor 60 to achieve the effect required.

[0071] Hence, it is possible to use the cathodic protection power supply to power the control unit for the interrupter. It can also be appreciated that the techniques envisaged in FIG. 9 can be applied to control of other devices connected to the pipe to which a cathodic protection voltage is applied. 

What is claimed is:
 1. A method of detecting currents on one or more underground pipes or cables comprising: applying a negative voltage to the or each of said pipes or cables, thereby to resist electrolytic effects from damaging said pipes or cables; modulating said negative voltage on the or each of said pipes or cables; detecting the magnetic field produced by said currents; and identifying the pipe or cable on which said currents are present by detecting the modulation of said currents.
 2. A method of detecting currents on one or more underground pipes or cables according to claim 1, in which said modulation is a square-wave modulation of non-unitary aspect ratio.
 3. A method of detecting currents on one or more underground pipes or cables according to claim 1, wherein said modulation is applied using an interrupter for the or each of said pipes or cables.
 4. A method according to claim 3, in which there are a plurality of underground pipes or cables and the interrupters connected to each pipe or cable are synchronised with each other.
 5. A method of detecting currents on a plurality of underground pipes or cables according to claim 4, wherein said synchronisation is achieved by each of the interrupters receiving an external time or clock signal.
 6. A method of detecting currents on a plurality of underground pipes or cables according to claim 5, wherein said external time or clock signal is a GPS signal.
 7. A method of detecting currents on a plurality of underground pipes or cables according to claim 4, wherein the modulation applied to the voltage on each pipe or cable is orthogonal to each of the modulations applied to the other pipes or cables.
 8. A method of analysing currents on one of a plurality of underground pipes or cables, comprising: applying a negative voltage to each of said pipes or cables, thereby to resist electrolytic effects from damaging said pipes or cables; modulating said negative voltage differently on each of said pipes or cables; detecting the magnetic field produced by currents on a first of said pipes or cables; analysing the currents at a first modulation, being the modulation applied to said first pipe or cable; determining the components of said currents that are due to the pipe or cable itself or to background effects; analysing the currents at each of the modulations applied to the other underground pipes or cables near to said first pipe or cable; and determining the components of said currents that are due to linking between said first pipe or cable and each of the other pipes or cables.
 9. A method of analysing currents on one of a plurality of underground pipes or cables according to claim 8, in which each modulation is a square-wave modulation of non-unitary aspect ratio.
 10. A method of analysing currents on one of a plurality of underground pipes or cables according to claim 8, wherein each modulation is applied using an interrupter for each of said pipes or cables.
 11. A method of analysing currents on one of a plurality of underground pipes or cables according to claim 10, wherein the modulation applied to the voltage on each pipe or cable is orthogonal to each of the modulations applied to the other pipes or cables.
 12. A method of analysing currents on a plurality of underground pipes or cables comprising: applying a negative voltage to each of said pipes or cables, thereby to resist electrolytic effects from damaging said pipes or cables; isolating a first of said pipes or cables; detecting the magnetic field produced by said currents on said first pipe or cable; determining from the detected magnetic field the position of said first pipe or cable; repeating said steps of isolating, detecting and determining for each of said plurality of pipes or cables except one; detecting the magnetic field produced by currents on all of said plurality of pipes or cables; determining the location of the remaining one pipe or cable by subtracting the magnetic field due to the other pipes or cables from the magnetic field detected from all of said plurality of cables.
 13. A method of analysing currents on two underground pipes or cables comprising: applying a negative voltage to both of said pipes or cables, thereby to resist electrolytic effects from damaging said pipes or cables; isolating a first of said pipes or cables; detecting the magnetic field produced by said currents on said first pipe or cable; determining from the detected magnetic field the position of said first pipe or cable; detecting the magnetic field produced by currents on both of said pipes or cables; determining the location of the other pipe or cable by subtracting the magnetic field due to the other pipes or cables from the magnetic field detected from both of said plurality of cables.
 14. A method of analysing currents on a plurality of underground pipes or cables according to claim 12, in which the negative voltage on each pipe or cable is modulated.
 15. A method of determining the location of an underground pipe or cable comprising: a) detecting the magnetic fields from current(s) flowing in said pipe or cable at more than two sensors, each of said sensors producing a signal as a result of the magnetic field detected; b) determining, from said signals, an estimated direction of said pipe or cable from each sensor; c) generating a model of a virtual magnetic field generated by a virtual pipe with a current flowing in it; d) modifying said signals such that the modified signals correspond to those produced by the superposition of said magnetic fields detected and said virtual magnetic field generated by said virtual pipe; e) determining the change in said estimated directions due to said modification; f) repeating steps c), d) and e) with said model being different on each repetition, until said estimated directions intersect at a common point, said model being different by variation in the location and/or current of said virtual pipe.
 16. A method of powering an electrical device attached to an underground pipe or cable, to which a negative protection voltage is applied, comprising: connecting a power storage device between said pipe or cable and ground; using the power stored in said power storage device to power said electrical device.
 17. An interrupter for controlling the negative protection voltage applied to an underground pipe or cable, the interrupter comprising: a switch for controlling said protection voltage; control means for controlling said switch; a power storage device, wherein said power storage device is connected between said negative protection voltage and ground.
 18. An interrupter according to claim 17, wherein said switch is a solid state switch.
 19. An interrupter for controlling the negative protection voltage applied to an underground pipe or cable, the interrupter comprising: a switch for controlling said protection voltage; means for storing a predetermined fixed prior time; means for storing a predetermined modulation cycle, the predetermined modulation cycle having its origin at the fixed prior time; timing means for determining the time elapsed between said fixed prior time and the current time; means for determining the location within said modulation cycle at the current time; means for setting a signal to a value corresponding to the determined location with said modulation cycle, and subsequently modulating said signal according to said modulation cycle; and control means for controlling said switch and modulating said negative protection voltage according to said modulated signal.
 20. An interrupter according to claim 19, wherein said timing means comprises a GPS receiver 